{include file="public/head"}

<body>
<style>
    .swiper{
        width: 100%;
        overflow: hidden;
        height: 30rem;
    }
    .swiper img{
        width: 100%;
        height: 100%;
    }
    .swiper-button-next{
        right: 24px !important;
        top: 51%;
    }
    .swiper-button-prev{
        left: 24px !important;
        margin-bottom: 0;
    }
    .swiper-button-prev, .swiper-button-next{
        width: 28px !important;
        height: 22px !important;
    }
    .goodsinfo .title{
        background: #3598dc;
        color: #fff;
        padding: 2%;
    }
    .infomsg{
        min-height: 26rem;
        border: 1px solid #3598dc;
    }
    table{
        width: 90%;
        margin: 20px auto;
    }
    table th,table td{
        border: 1px solid #ccc;
        padding: 2%;
        color: #000;
        font-weight: bolder;
    }
    table td{
        font-weight: normal;
    }
    table th:first-child{
        width: 33%;
    }
    table th:last-child{
        width: 80%;
    }
    .goodsdetail{
        margin-top: 5rem;

    }
    .goodsdetail .title{
        background: #9B59B6;
    }
    .goodsdetail-info{
        border-color:#9B59B6 ;
        text-align: center;
        padding-top: 2rem;
    }
    .goodsdetail-info img{
        max-width: 100%;
    }
</style>
<div id="wrapper">
    {include file="public/menu"}

    <div id="page-wrapper" class="gray-bg dashbard-1">
        {include file="public/nav"}
        <div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-10">
                <h2>商品信息</h2>
                <ol class="breadcrumb">
                    <li>
                        <a href="{:url('User/Panel')}">主页</a>
                    </li>
                    <li>
                        <a>商品</a>
                    </li>
                    <li>
                        <strong>商品列表</strong>
                    </li>
                </ol>
            </div>
            <div class="col-lg-2">

            </div>
        </div>
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>商品信息列表</h5>
                            <div class="ibox-tools">
                                <small>共 0 条</small>
                            </div>
                        </div>

                        <div class="ibox-content">
                            <div class="row">
                                <div class="col-lg-5">
                                    <div class="swiper">
                                        <div class="swiper-wrapper">
                                            {volist name="detail.banner" id="bv"}
                                            <div class="swiper-slide"><img src="{$bv}" alt=""></div>
                                            {/volist}
                                        </div>
                                        <!-- 如果需要分页器 -->
                                        <div class="swiper-pagination"></div>

                                        <!-- 如果需要导航按钮 -->
                                        <div class="swiper-button-prev"></div>
                                        <div class="swiper-button-next"></div>

                                    </div>
                                </div>
                                <div class="col-lg-7">
                                    <div class="goodsinfo">
                                        <div class="title">
                                            资讯
                                        </div>
                                        <div class="infomsg">
                                            <table>
                                                <tr>
                                                    <th>项目</th>
                                                    <th>说明</th>
                                                </tr>
                                                <tr>
                                                    <td>商品名称</td>
                                                    <td>{$detail.name}</td>
                                                </tr>
                                                <tr>
                                                    <td>单价</td>
                                                    <td>{$detail.price} U</td>
                                                </tr>
                                                <tr>
                                                    <td>库存</td>
                                                    <td>备货中</td>
                                                </tr>
                                                <tr>
                                                    <td>规格</td>
                                                    <td>{$detail.introduction}</td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-lg-12">
                                    <div class="goodsinfo goodsdetail">
                                        <div class="title">
                                            详情
                                        </div>
                                        <div class="infomsg goodsdetail-info">
                                            {$detail.detail}
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        {include file="public/foot"}

    </div>
</div>
</div>
{include file="public/footer"}
<link rel="stylesheet" href="__STATIC__/kuang/utils/swiper/swiper.css">
<script src="__STATIC__/kuang/utils/swiper/swiper.js"></script>
<script>
    var mySwiper = new Swiper ('.swiper', {
        // direction: 'vertical', // 垂直切换选项
        loop: true, // 循环模式选项
        // autoplay:true,
        // 如果需要分页器
        pagination: {
            el: '.swiper-pagination',
        },

        // 如果需要前进后退按钮
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },

    })

</script>
</body>
</html>
